//
//  ASJSkill.h
//  ASJ001
//
//  Created by zephyrhan on 11/13/11.
//  Copyright (c) 2011 Ebrothers tech. All rights reserved.
//

#import "cocos2d.h"
#import "ASJStage.h"
//#import "GlobaHead.h"



@interface ASJSkill : NSObject {
    
    NSString* skillName;
    NSInteger frameCount;
    
    CCSprite* skillSprite;
    CCAction* skillAnimation;
    CCSpriteBatchNode* skillBatchNode;
    
    CGFloat coolTime;  // time to reuse this skill
    CGFloat currentCoolTime;
    NSTimer* coolSkillTimer;
    
    CGFloat skillPowser;
    
    ASJStage* effectStage;
    int killMonster;
    int killMonsterCont;
    
    id comboTarget;
    SEL comboAction;
    
    int skillPriority;
    int currentPriority;
    
}

@property (nonatomic, retain) NSString* skillName;
@property (nonatomic, readonly) CCSprite* skillSprite;
@property (nonatomic, readonly) ASJStage* effectStage;
@property int skillPriority;
@property int currentPriority;
@property CGFloat skillPowser;
@property CGFloat coolTime;
@property CGFloat currentCoolTime;

- (id)initWithSkillName:(NSString*)name frameCount:(NSInteger)count inStage:(ASJStage*)stage;
- (id)initWithSkillName:(NSString*)name frameCount:(NSInteger)count comboTarget:(id)target action:(SEL)action inStage:(ASJStage*)stage;

- (void)loadSkillSpriteToLayer:(CCLayer*)layer;
- (void)fireSkillAtPosition:(CGPoint)pos;
- (void)stopSkill;

- (void)skillEffect;
- (void)coolSkillStep;

@end
